import request from "@/utils/request";

// 获取树状机构信息
export function getTreeListApi() {
  return request({
    method: "GET",
    url: "/business-hall/tree",
  });
}
// 获取机构详情
export function getOrganizationInfoApi(id) {
  return request({
    method: "GET",
    url: `/business-hall/${id}`,
  });
}
// 获取地址信息
export function getAddressApi(id) {
  return request({
    method: "GET",
    url: "/areas/children",
    params: {
      parentId: id,
    },
  });
}
